package xyz.liuyuhe.StudySpring.ch8.proxyfactorybean;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ProxyFactoryBeanMain {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                "classpath*:ch8/proxyfactorybean/Bean.xml");
        UserService us = (UserService)context.getBean("userService");
        us.updateUser();
        context.close();
    }
}
